<%@ page language="java" import="java.util.*,com.ruohi.util.common.*,com.ruohi.util.dbutil.*,java.sql.*" pageEncoding="UTF-8"%>
<%@page import="java.net.URL"%>
<%@page import="java.net.HttpURLConnection"%>
<%@page import="org.codehaus.xfire.client.Client,com.ruohi.util.common.Env,java.net.URL"%>

<%@page import="org.apache.commons.httpclient.HttpClient"%>
<%@page import="org.apache.commons.httpclient.methods.PostMethod"%>
<%@page import="org.apache.commons.httpclient.HttpMethod"%>
<%@page import="org.apache.commons.httpclient.methods.GetMethod"%>

<%@page import="java.net.URLEncoder"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStreamReader"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'kuaidi.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	 <%    
	 	String com =CommonString.getFormatPara(request.getParameter("com"));
	 	String no =CommonString.getFormatPara(request.getParameter("no"));
	 	if(com!="" && no!=""){
        HttpClient client = new HttpClient();
        PostMethod meth =new PostMethod("http://www.kuaidi100.com/applyurl?key=86a05111416fd379&com="+com+"&nu="+no+"");
        client.executeMethod(meth);
        String content=meth.getResponseBodyAsString();
   %> 
  </head>
  <body>
 	<div style=" margin:0; padding:0; ">
 		 <iframe  style="border-bottom:1px inset; margin:0; padding:0;"  name="kuaidi100" id="kuaidi100" src="<%=content%>" width="532" height="260" marginwidth="0" marginheight="0" 
			 hspace="0" vspace="0" frameborder="0"   scrolling="no">
		</iframe>
 	</div>
 		<% 
			}else{
	 		%>
	 		您提供的信息不全不能查出物流信息
	 		<%
	 	}%>
  </body>
</html>
